package StudyCode.summary.mycollection;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class SawpElementInHeapByIndex {
	public static void swap(Comparable[] heap, int index, int index2) {
		Comparable temp = heap[index];
		heap[index] = heap[index2];
		heap[index2] = temp;
	}
}
